package com.xhdd.conf;


import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.MappingJsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class JsonConf {

    @Bean
    private ObjectMapper getObjectMapper() {
        return new ObjectMapper();
    }

    @Bean
    private JsonFactory getJsonFactory() {
        return new MappingJsonFactory();
    }


}